/*  header-comment
/*  file   : stepTwo
/*  author : arida
/*  date   : 2017-6-4 18:26:42
/*  last   : 2017-6-5 20:28:54
*/
import { handleActions } from "redux-actions";

// TODO: reducer 中的step下的名字起得语义化一点
// eg: stepTwo.js -> profile.js

// 定义reducer
const reducer = handleActions(
  {
    STEP_TWO_GET_OPTIONS: (state, action) => ({
      ...state,
      options: action.payload
    }),
    STEP_TWO_GET_USER: (state, action) => ({ ...state, user: action.payload })
  },
  {}
);
export default reducer;
